import { request } from '../utils/request'

// 获取店铺轮播图
export const getShopBanner = (id) => {
  return request({
    url: '/Alipay/Shop/getShopBanner',
    method: 'GET',
    data: { member_id: id }
  })
}

// 获取商户是否开启城市定位
export const getShopCityLocation = (id) => {
  return request({
    url: '/Alipay/Shop/getShopCityLocation',
    method: 'GET',
    data: { member_id: id }
  })
}

// 获取商户店铺首页商品信息
export const getShopIndex = (data) => {
  return request({
    url: '/Alipay/Shop/getShopIndex',
    method: 'POST',
    data
  })
}

// 获取店铺分类
export const getShopCategory = (id) => {
  return request({
    url: '/Alipay/Shop/getShopCategory',
    method: 'GET',
    data: { member_id: id }
  })
}

// 根据分类id获取商户商品
export const getShopGoods = (data) => {
  return request({
    url: '/Alipay/Shop/getShopGoods',
    method: 'POST',
    data
  })
}

// 获取客服电话
export const getTelePhone = (id) => {
  return request({
    url: '/Alipay/Shop/getTelePhone',
    method: 'GET',
    data: { member_id: id }
  })
}
//生成店铺二维码
export const getQRcode = (id) => {
  return request({
    url: '/Alipay/Shop/shopQrcode',
    method: 'GET',
    data: { member_id: id }
  })
}